<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Product Form</title>
</head>
<body>
<h1>Add Product</h1>
<form method="post" action="/products/add" enctype="multipart/form-data">
  <label for="id">Id:</label>
  <input type="text" id="id" name="id" required><br><br>
  <label for="name">Name:</label>
  <input type="text" id="name" name="name" required><br><br>
  <label for="description">Description:</label>
  <input type="text" id="description" name="description" required><br><br>
  <label for="price">Price:</label>
  <input type="number" id="price" name="price" min="0" step="0.01" required><br><br>
  <label for="image">Image:</label>
  <input type="file" id="image" name="image"><br><br>
<!--  <input type="submit" value="Add Product">-->
  <button onclick="window.location.href='templates/productlist.html'">Add Product</button>

</form>
</body>
</html>
